/**
 * @description Blog表的模型
 * @author 印明帝
 */
const seq = require('../seq.js')
const { INTEGER,TEXT,STRING } = require('../types')

const Blog = seq.define('blog',{
  userId: {
    type: INTEGER,
    allowNull: false,
    comment: '博客的用户id'
  },
  content: {
    type: TEXT,
    allowNull: false,
    comment: '博客内容'
  },
  image: {
    type: STRING,
    comment: '博客配图'
  }
})

module.exports = Blog